<form id="add-form" role="form" data-toggle="validator" method="POST" action="<?= Tools::siteurl("version/add") ?>">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-group">
                <label for="oldversion" class="control-label">旧版本:</label>
                <input type="text" class="form-control" id="oldversion" name="row[oldversion]" required="required" />
            </div>
            <div class="form-group">
                <label for="newversion" class="control-label">新版本:</label>
                <input type="text" class="form-control" id="newversion" name="row[newversion]" required="required" />
            </div>
            <div class="form-group">
                <label for="packagesize" class="control-label">包大小:</label>
                <input type="text" class="form-control" id="packagesize" name="row[packagesize]" required="required" />
            </div>
            <div class="form-group">
                <label for="downloadurl" class="control-label">下载地址:</label>
                <div class="form-inline">
                    <input type="text" class="form-control" data-plupload-id="downloadurl-text" name="row[downloadurl]" value="" size="50" required="required" />
                    <span><button type="button" id="downloadurl" class="btn btn-danger plupload"><i class="fa fa-upload"></i> 上传新包</button></span>
                </div>
            </div>
            <div class="form-group">
                <label for="content" class="control-label">更新内容:</label>
                <textarea name="row[content]" id="content" class="form-control" cols="30" rows="5"></textarea>
            </div>
            <div class="form-group">
                <label for="weigh" class="control-label">权重:</label>
                <input type="text" class="form-control" id="weigh" name="row[weigh]" value="0" />
            </div>
            <div class="form-group">
                <label for="content" class="control-label">强制更新:</label>
                <input type="radio" name="row[enforce]" value="1" id="status-yes" />
                <label for="status-yes">是</label>
                <input type="radio" name="row[enforce]" value="0" id="status-no" checked />
                <label for="status-no">否</label>
            </div>
            <div class="form-group">
                <label for="content" class="control-label">状态:</label>
                <input type="radio" name="row[status]" value="normal" id="status-normal" checked />
                <label for="status-normal">正常</label>
                <input type="radio" name="row[status]" value="hidden" id="status-hidden" />
                <label for="status-hidden">隐藏</label>
            </div>
        </div>
    </div>

</form>